size=int(input("请输入三角形的长度:"))
i=0

while i<size :
    while i<size+1 :
        print("*\t"*i)
        print("")
        i += 1




print("\t")
j=0
while j<size:
    while j<size :
        print("*\t"*(size-j))
        print()
        j+=1



print("\t")
m = 1
while m <= size:
    j = 1
    while j <= size - m:
        print(' \t', end='')
        j += 1
    j = 1
    while j <= m:
        print('*\t', end='')
        j += 1
    print()
    m += 1




print("\t")
n = size
while n >= 1:

    j = 1
    while j <= size - n:
        print(' \t', end='')
        j += 1

    j = 1
    while j <= n:
        print('*\t', end='')
        j += 1
    print()
    n -= 1


